<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.WindowBase类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_window_base.html">WindowBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_window_base-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.WindowBase类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.WindowBase 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_window_base.png" usemap="#awtk.WindowBase_map" alt=""/>
  <map id="awtk.WindowBase_map" name="awtk.WindowBase_map">
<area href="classawtk_1_1_dialog.html" alt="awtk.Dialog" shape="rect" coords="0,112,113,136"/>
<area href="classawtk_1_1_keyboard.html" alt="awtk.Keyboard" shape="rect" coords="123,112,236,136"/>
<area href="classawtk_1_1_popup.html" alt="awtk.Popup" shape="rect" coords="246,112,359,136"/>
<area href="classawtk_1_1_system_bar.html" alt="awtk.SystemBar" shape="rect" coords="369,112,482,136"/>
<area href="classawtk_1_1_window.html" alt="awtk.Window" shape="rect" coords="492,112,605,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a07ecd7b8ff831b14e0945d0754ec2d5f"><td class="memItemLeft" align="right" valign="top"><a id="a07ecd7b8ff831b14e0945d0754ec2d5f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>WindowBase</b> (long nativeObj)</td></tr>
<tr class="separator:a07ecd7b8ff831b14e0945d0754ec2d5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18e9d39f0297072196cce80fdf08a7ee"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#a18e9d39f0297072196cce80fdf08a7ee">getTheme</a> ()</td></tr>
<tr class="separator:a18e9d39f0297072196cce80fdf08a7ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8065caa6c8c87501e42f0aa2888f9a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_window_closable.html">WindowClosable</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#aa8065caa6c8c87501e42f0aa2888f9a9">getClosable</a> ()</td></tr>
<tr class="separator:aa8065caa6c8c87501e42f0aa2888f9a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a98005abcb8a39d34b5b91c82370b7f1e"><td class="memItemLeft" align="right" valign="top"><a id="a98005abcb8a39d34b5b91c82370b7f1e"></a>
static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a98005abcb8a39d34b5b91c82370b7f1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afef293b79c0d92cdde82061ada03b06a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#afef293b79c0d92cdde82061ada03b06a">cast</a> (Widget widget)</td></tr>
<tr class="separator:afef293b79c0d92cdde82061ada03b06a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a446bcc7b77e1cca7b0c2390901e0b0ac"><td class="memItemLeft" align="right" valign="top"><a id="a446bcc7b77e1cca7b0c2390901e0b0ac"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a446bcc7b77e1cca7b0c2390901e0b0ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>窗口。</p>
<p>本类把窗口相关的公共行为进行抽象，放到一起方便重用。目前已知的具体实现如下图：</p>
<p>本类是一个抽象类，不能进行实例化。请在应用程序中使用具体的类，如window_t。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="afef293b79c0d92cdde82061ada03b06a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afef293b79c0d92cdde82061ada03b06a">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a> awtk.WindowBase.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为window_base对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>window_base对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>window_base对象。 </dd></dl>

</div>
</div>
<a id="aa8065caa6c8c87501e42f0aa2888f9a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8065caa6c8c87501e42f0aa2888f9a9">&#9670;&nbsp;</a></span>getClosable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_window_closable.html">WindowClosable</a> awtk.WindowBase.getClosable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>收到EVT_REQUEST_CLOSE_WINDOW是否自动关闭窗口。</p>
<p>如果关闭窗口时，需要用户确认:</p>
<ul>
<li>1.将closable设置为WINDOW_CLOSABLE_CONFIRM</li>
<li>2.处理窗口的EVT_REQUEST_CLOSE_WINDOW事件</li>
</ul>
<p>closable在XML中取值为：yes/no/confirm，缺省为yes。 </p>

</div>
</div>
<a id="a18e9d39f0297072196cce80fdf08a7ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18e9d39f0297072196cce80fdf08a7ee">&#9670;&nbsp;</a></span>getTheme()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.WindowBase.getTheme </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>主题资源的名称。 每个窗口都可以有独立的主题文件，如果没指定，则使用系统缺省的主题文件。 主题是一个XML文件，放在assets/raw/styles目录下。 请参考https://github.com/zlgopen/awtk/blob/master/docs/theme.md "主题" </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/WindowBase.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
